package com.example.carrierapp.ui.person.help;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.example.carrierapp.base.BaseActivity;
import com.example.carrierapp.config.ConstValue;
import com.example.carrierapp.util.ActivityUtil;
import com.example.lb.fingerdemo.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class HelpVideoActivity extends BaseActivity{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
    }

    @Override
    public int getContentView() {
        return R.layout.activity_help_video;
    }

    @Override
    public String getTitleString() {
        return "操作视频";
    }

    @OnClick({R.id.tv_video_find, R.id.tv_video_waybill})
    public void onViewClick(View view) {
        switch (view.getId()) {
            case R.id.tv_video_find:
                ActivityUtil.startHelpVideo(this,"发货计划操作帮助视频", ConstValue.URL_FIND);
                break;
            case R.id.tv_video_waybill:
                ActivityUtil.startHelpVideo(this,"竞抢管理操作帮助视频",ConstValue.URL_WAYBILL);
                break;
        }
    }
}
